package com.wk1un2.dao;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wk1un2.entity.Messages;

public interface MessagesDao extends BaseMapper<Messages> {
	/*
	 * 查询所有消息
	 */ public List<Messages> getAll(Map<String, Object> map);

	/**
	 * 未读消息
	 * 
	 * @param map
	 * @return
	 */
	List<Messages> getUnreadMessages(Map<String, Object> map);

	/**
	 * 已读消息
	 * 
	 * @param map
	 * @return
	 */
	List<Messages> getReadMessages(Map<String, Object> map);
}
